﻿using Bootstrap;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Bootstrap.AutoMapper;

namespace Dogshow.Linq2SQLRepository.Test
{
    [TestClass]
    public class DbInitFixtures
    {
        [TestMethod]
        public void Initialize()
        {
            Bootstrapper.With.AutoMapper().Start();
            using(var ctx = new DogshowModel())
            {
                if (ctx.DatabaseExists())
                {
                    ctx.DeleteDatabase();
                }
                new DbInit().Initialize();   
            }
             
        }
    }
}